<?php 
//include_once("../DAO/SanPhamDAO.php");
//include_once("../DAO/GianHangDAO.php");
//include_once("../DAO/TaiKhoanDAO.php");

//ket noi toi co so du lieu thong qua datahelper.php
class NguoiBanBUS
{
	public static function LaySanPhamTheoUsername($username)
	{
		$gianhang = GianHangDAO::LayGianHangTheoUsername($username);
		$arraySanPham = SanPhamDAO::LaySamPhamTheoMaGianHang($gianhang[0]->gh_ma);
		return $arraySanPham;
	}
	public static function KiemTraEmailHopLe($email)
	{
		$kiemtra = TaiKhoanDAO::KiemTraEmailHopLe($email);
		return $kiemtra;
	}
	
	public static function LayThongTinNguoiBan($username)
	{
		
		$ThongTin = TaiKhoanDAO::LayUserTheoUsername($username);
		return $ThongTin;
	}
}

?>
	
